package vip.finance.makemoney.apiSpider.tonghuashun;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 同花顺api
 *
 * @author 杨滨
 * @date 2023年02月09日
 */
@FeignClient(name = "tongHuaShunApi", url = "${feign.rpc.tong_hua_shun_api_url}")
public interface TongHuaShunApi {
    //etf持仓   https://eq.10jqka.com.cn/open/api/etf_tab/v1/fund/stock/list?limit=50&market=20&order_type=1&stockcode=515070
    @GetMapping(value = "/etf_tab/v1/fund/stock/list")
    ThsEtfStockRes listEtfStock(@RequestParam("limit") Integer limit,
                                @RequestParam("market") Integer market,
                                @RequestParam("order_type") Integer order_type,
                                @RequestParam("stockcode") String stockcode);
}
